/**********************************************************************
* Filename: Main_AirNova.java
* Created: 2013/05/31
* @author Fernando Brito e Abreu
**********************************************************************/
package org.quasar.airNova.presentationLayer;

import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public abstract class Main_AirNova{
	
	public static final String COMBO_ITEM = "----------------";
	
	/***********************************************************
	* @param args
	***********************************************************/
	public static void main(String[] args){
		JFrame mainFrame = new JFrame("AirNova");
		JButton cliente = new JButton("Cliente");
		JButton administrador = new JButton("Administrador");
		JLabel label = new JLabel("       Seleccione o seu perfil:");
		JPanel panel = new JPanel();
		
		mainFrame.setLayout(new GridLayout(2,1));
		panel.setLayout(new FlowLayout());
		
		mainFrame.add(label);
		mainFrame.add(panel);
		
		panel.add(cliente);
		cliente.addActionListener(new ActionListener() {	
			@Override
			public void actionPerformed(ActionEvent arg0) {
				new ClienteGUI();
			}
		});
		
		panel.add(administrador);
		administrador.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				new AdministradorGUI();
			}
		});
		
		mainFrame.setSize(250, 130);
		mainFrame.setLocationRelativeTo(null);
		mainFrame.setVisible(true);
		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
	}
	
}
